home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.lanl.gov!tanmoy
- From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
- Newsgroups: comp.lang.c
- Subject: Re: dereferencing pointer to incomplete type
- Date: 03 Mar 1996 06:08:32 GMT
- Organization: Los Alamos National Laboratory
- Message-ID: <TANMOY.96Mar2230832@qcd.lanl.gov>
- References: <1996Mar3.040741.27234@dcs.warwick.ac.uk>
- NNTP-Posting-Host: qcd.lanl.gov
- Mime-Version: 1.0
- Content-Type: text
- In-reply-to: D.C.Molero@dcs.warwick.ac.uk's message of Sun, 3 Mar 1996 04:07:41 GMT
-
- In article <1996Mar3.040741.27234@dcs.warwick.ac.uk>
- D.C.Molero@dcs.warwick.ac.uk (Daniel Castillo Molero) writes:
-
- <snip>
- DCM: struct polygon
- DCM: {
- DCM: int tried;
- DCM: double x, y;
- DCM: int dir, numtimes, conv;
- DCM: struct polyg *next;
- DCM: };
- <snip>
- DCM: void calc_area(struct polygon* polyg, double* area) {
- DCM: struct polygon* p;
- DCM: double result;
- DCM: p = polyg->next;
-
- p has type struct polygon*, rhs has struct polyg*: not the same type.
-
- DCM: while (p->next != 0) {
-
- Where did you define struct polyg?
-
- Cheers
- Tanmoy
- --
- tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
- Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
- Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
- <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
- internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
- fax: 1 (505) 665 3003 voice: 1 (505) 665 4733 [ Home: 1 (505) 662 5596 ]
-